package top.hiai.util;

import com.jfinal.plugin.activerecord.ActiveRecordPlugin;

import top.hiai.model.ArcType;
import top.hiai.model.Article;
import top.hiai.model.Comment;
import top.hiai.model.Link;
import top.hiai.model.Message;
import top.hiai.model.User;
import top.hiai.model.UserXia;

/**
* @Author www.hiai.top
* @Email  goodsking@163.com
* @Message 更多资源尽在www.hiai.top,开发者：黄康权
* @Introduction 类的介绍
*/

public class _MappingKit {
	
	/**
	 * 数据库中的表映射
	 * @param arp
	 */
	public static void mapping(ActiveRecordPlugin arp) {
		arp.addMapping("t_article", "aid", Article.class);
		arp.addMapping("t_arctype", "tid", ArcType.class);
		arp.addMapping("t_link", "lid", Link.class);
		arp.addMapping("t_user", "uid", User.class);
		arp.addMapping("t_comment", "cid", Comment.class);
		arp.addMapping("t_userxia", "xid", UserXia.class);
		arp.addMapping("t_message", "mid", Message.class);
	}
}